package com.kgc.est.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.kgc.est.pojo.Model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Api(tags = "商品类别出参类型")
public class ModelDto implements Serializable {
    @TableId(value = "商品品牌的类型id")
    private Long id;

    @ApiModelProperty(value = "型号名称")
    private String modelName;

    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    @ApiModelProperty(value = "类型id")
    private Long classifyId;

    @ApiModelProperty(value = "当前行情价格")
    private BigDecimal exchangePrice;

    @ApiModelProperty(value = "最高价")
    private BigDecimal topPrice;

    @ApiModelProperty(value = "封面图片")
    private String faceImg;

    @ApiModelProperty(value = "内容图片")
    private String contentImg;

    public ModelDto() {
    }

    public ModelDto(Model model) {
        this.id = model.getId();
        this.modelName = model.getModelName();
        this.brandId = model.getBrandId();
        this.classifyId = model.getClassifyId();
        this.exchangePrice = model.getExchangePrice();
        this.topPrice = model.getTopPrice();
    }
}
